afpvolumes.htmlHTMLudog=πùΔ¢πùΔ¢ÅÅã Monkeybread Realbasic plugin - Documentation - AFPVolumes

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class AFPVolumes

class, AFP So, 14. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Does nothing.
Function: A class for the volumes on an Apple File Sharing Server.

Count as integer

method, AFP So, 14. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> 0
Function: Returns how many volumes where found on the server.
Notes: Requires Mac OS X or on Mac OS Classic the AppleShare system extension.

Mount(volume as string) as integer

method, AFP So, 14. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> -1.
Function: Mounts the volume.
Example:
dim i as integer

i=v.mount(list.cell(list.listindex,0))
if i=0 then
msgBox "Error on mounting."
elseif i=1 then
msgBox "Mounting successfull."
elseif i=2 then
msgBox "Allready mounted."
elseif i=-1 then
msgBox "Something wrong or Windows."
end if
Notes:
Possible return values:
0Error on mounting.
1Mounting successfull.
2Volume was allready mounted.
-1Windows, volume="" or AppleShareClient library not found.
Requires Mac OS X or on Mac OS Classic the AppleShare system extension.

MountAtStartup(volume as string) as boolean

method, AFP Sa, 27. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: whether to mount the volume at system start.
Notes:
Seems to be not working on Mac OS X.

Requires Mac OS X or on Mac OS Classic the AppleShare system extension.

Sort

method, AFP So, 14. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Does nothing.
Function: Sorts the volume names alphabetically.
Notes: Requires Mac OS X or on Mac OS Classic the AppleShare system extension.

Volumename(index as integer) as string

method, AFP So, 14. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> "".
Function: Returns the name of the volume with this index.
Example: msgbox v.volumename(1) // first name
Notes:
1 based list.
Requires Mac OS X or on Mac OS Classic the AppleShare system extension.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ